package com.luoke.dao;


import com.luoke.pojo.entity.User;
import com.luoke.util.myjdbc.BaseDao;

import java.util.List;

public  interface  UserDao extends BaseDao<User> {



    User getUserByNameAndPwd(String name, String pwd);

    Long saveUser(User user);

    User getUserByName(String name);


    void UpdateLastTimeByName(String username);

    List<String> getOnlinePlayers();  // 返回在线玩家姓名列表
    void updateOnlineStatus(String username, boolean isOnline); //设置玩家在线状态


}
